package com.demo.crm.springboot3security.service;

import java.util.List;

import com.demo.crm.springboot3security.entity.Permission;
import com.mybatisflex.core.paginate.Page;

public interface PermissionService {
    Permission findByName(String name);

    Permission findByPermissionKey(String permissionKey);
    Permission save(Permission permission);

    void delete(Long id);

    Permission findById(Long id);

    List<Permission> findAll();

    Page<Permission> findByPage(int pageNumber, int pageSize);

    boolean existsByName(String name);

    boolean existsByPermissionKey(String permissionKey);
} 